package com.wxd.woff.graphics;

import java.awt.geom.GeneralPath;
import java.util.Arrays;

import com.wxd.woff.table.glyf.Point;
import com.wxd.woff.utils.BoundingBox;

/**
 * @Description: 功能描述：带坐标path
 * @ClassName: TTFGraphicsPathData
 * @author: Wang Xindong
 * @date: 2018年9月7日 下午2:05:55
 * @email: wangxindong@travelsky.com
 * @Copyright: Copyright (c) 2018. All rights reserved.
 */
public class TTFGraphicsPathData extends TTFGraphicsData {

    private GeneralPath path;

    public TTFGraphicsPathData() {
        super();
    }

    public TTFGraphicsPathData(String tag, BoundingBox fontBox, Point[] points, GeneralPath path) {
        super(tag, fontBox, points);
        this.path = path;
    }

    public GeneralPath getPath() {
        return path;
    }

    public void setPath(GeneralPath path) {
        this.path = path;
    }

    @Override
    public String toString() {
        return "TTFGraphicsPathData{" +
                "tag=" + getTag() +
                ", fontBox=" + getFontBox() + ", points=" + Arrays.toString(getPoints()) + "]" +
                ", path=" + path +
                '}';
    }
}
